package ast;

public abstract class AbstractSentencia implements Sentencia {

	public int linea;
	
	public int getLinea(){
		return this.linea;
	}
	
	public ExpresionLogica crearExprLogicaDesdeExpresion(Expresion expresion) {
		if (expresion instanceof ExpresionLogica)
			return (ExpresionLogica) expresion;
		else
			return new ExpresionLogica(expresion,"");
	}
}
